home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / giochi / f1gp-ed.lha / F1GP-Ed / Install_F1GP-Ed < prev    next >
Text File  |  1995-09-02  |  4KB  |  211 lines

  1. ; F1GP-Ed Installer script
  2. ; $VER: F1GP-Ed_Install 3.01 (2.9.95)
  3. ; written by Oliver Roberts
  4. ;
  5. ; Please report any bugs this script has :-)
  6.  
  7. (set OSVersion (/ (getversion) 65536))
  8.  
  9. (if (NOT (askbool
  10.       (prompt "This Installer script will attempt to install F1GP-Ed to your "
  11.               "hard drive.  It can install F1GP-Ed for the first time or update "
  12.               "a version which you already have installed.  Please report any "
  13.               "bugs in this script.\n\n"
  14.               "Make sure you have booted from your hard drive, before "
  15.               "continuing with this installation!\n\nDo you want to continue?"
  16.       )
  17.       (default 0)
  18.       (help "")
  19.    ))
  20.    (exit (quiet))
  21. )
  22.       
  23. (welcome "")
  24.  
  25. (complete 0)
  26.  
  27. (set destdir
  28.    (askdir
  29.       (prompt "Select where the \"F1GP-Ed\" drawer should be created (or where it already exists)")
  30.       (help @askdir-help)
  31.       (default @default-dest)
  32.    )
  33. )
  34.  
  35. (set @default-dest (tackon destdir "F1GP-Ed"))
  36. (if (NOT (exists @default-dest))
  37.    (makedir @default-dest (infos))
  38. )
  39.  
  40. (if (<> 2 (exists @default-dest)) (
  41.    (message "Could not create the \"F1GP-Ed\" drawer - make sure "
  42.             "there are no FILES called \"F1GP-Ed\" in the destination "
  43.             "you selected.\n\n\nInstallation Failed!")
  44.    (exit (quiet)))
  45. )
  46.  
  47. (set libdir "LIBS:")
  48.  
  49. (copylib
  50.    (prompt "Installing newer version of f1gp.library")
  51.    (source "Libs13/f1gp.library")
  52.    (dest libdir)
  53.    (help @copylib-help)
  54.    (newname "f1gp.library")
  55.    (confirm)
  56. )
  57.  
  58. (if (< OSVersion 36) 
  59.    (  (set ReqToolsSource "Libs13/reqtools.library")
  60.       (copylib
  61.          (prompt "Installing newer version of gadtools13.library")
  62.          (source "Libs13/gadtools13.library")
  63.          (dest libdir)
  64.          (help @copylib-help)
  65.          (newname "gadtools13.library")
  66.          (confirm)
  67.       )
  68.    )
  69.    (  (set ReqToolsSource "Libs20/reqtools.library")
  70.       (set asllib (tackon libdir "asl.library"))
  71.       (if (exists asllib)
  72.          (  (set aslver (/ (getversion asllib) 65536))
  73.             (if (>= aslver 38)
  74.                (set ReqToolsSource "")
  75.             )
  76.      )
  77.       )
  78.    )
  79. )
  80.  
  81. (complete 10)
  82.  
  83. (if ReqToolsSource
  84.    (copylib
  85.       (prompt "Installing newer version of reqtools.library")
  86.       (source ReqToolsSource)
  87.       (dest libdir)
  88.       (help @copylib-help)
  89.       (newname "reqtools.library")
  90.       (confirm)
  91.    )
  92. )
  93.  
  94. (complete 20)
  95.  
  96. (copylib
  97.    (prompt "Installing F1GP-Ed executable...")
  98.    (source "F1GP-Ed")
  99.    (dest @default-dest)
  100.    (help @copylib-help)
  101.    (infos)
  102.    (confirm)
  103. )
  104.  
  105. (complete 30)
  106.  
  107. (if (exists "F1GP-Ed.key")
  108.    (copyfiles
  109.       (source "F1GP-Ed.key")
  110.       (dest @default-dest)
  111.       (help @copyfiles-help)
  112.    )
  113. )
  114.  
  115. (complete 35)
  116.  
  117. (copyfiles
  118.    (source "")
  119.    (choices "F1GP-Ed.guide" "History.txt" "Reg_Form")
  120.    (files)
  121.    (dest @default-dest)
  122.    (help @copyfiles-help)
  123.    (infos)
  124. )
  125.  
  126. (complete 50)
  127.  
  128. (set opts
  129.    (askoptions
  130.       (prompt "Please confirm if you'd like to install these")
  131.       (help @askoptions-help)
  132.       (choices "1995 season data"
  133.                "1994 season data"
  134.                "Sound related files (Sound drawer)"
  135.                "Graphics related files (Graphics drawer)"
  136.                "Files in the Extras drawer")
  137.       (default 31)
  138.    )
  139. )
  140.  
  141. (if (IN opts 0)
  142.    (copyfiles
  143.       (prompt "Copying 1995 datafile...")
  144.       (source "1995.f1gp")
  145.       (dest @default-dest)
  146.       (help @copyfiles-help)
  147.       (infos)
  148.    )
  149. )
  150.  
  151. (complete 60)
  152.  
  153. (if (IN opts 1)
  154.    (copyfiles
  155.       (prompt "Copying 1994 datafile...")
  156.       (source "1994.f1gp")
  157.       (dest @default-dest)
  158.       (help @copyfiles-help)
  159.       (infos)
  160.    )
  161. )
  162.  
  163. (complete 70)
  164.  
  165. (if (IN opts 2)
  166.    (copyfiles
  167.       (prompt "Copying Sound drawer...")
  168.       (source "Sound")
  169.       (dest (tackon @default-dest "Sound"))
  170.       (help @copyfiles-help)
  171.       (all)
  172.       (infos)
  173.    )
  174. )
  175.  
  176. (complete 80)
  177.  
  178. (if (IN opts 3)
  179.    (copyfiles
  180.       (prompt "Copying Graphics drawer...")
  181.       (source "Graphics")
  182.       (dest (tackon @default-dest "Graphics"))
  183.       (help @copyfiles-help)
  184.       (all)
  185.       (infos)
  186.    )
  187. )
  188.  
  189. (complete 90)
  190.  
  191. (if (IN opts 4)
  192.    (copyfiles
  193.       (prompt "Copying Extras drawer...")
  194.       (source "Extras")
  195.       (dest (tackon @default-dest "Extras"))
  196.       (help @copyfiles-help)
  197.       (all)
  198.       (infos)
  199.    )
  200. )
  201.  
  202. (complete 100)
  203.  
  204. (exit
  205.    "Enjoy using F1GP-Ed!\n"
  206.    "If you had problems running this installer\n"
  207.    "please let me know.\n\n"
  208.    "Oliver Roberts (O.J.C.Roberts@essex.ac.uk)\n"
  209.    "http://cswww2.essex.ac.uk/users/robeoy/"
  210. )
  211.